﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RHD.Common.Web.Components.Button {
	public class ButtonBuilder {
		internal string tooltip;
		internal string function;
		internal string urlAction;
		internal string icon;
		internal string form;
		internal bool text = true;
		internal ButtonType type = ButtonType.Default;

		#region Methods

		public ButtonBuilder Tooltip(string s) {
			this.tooltip = s;
			return this;
		}

		public ButtonBuilder Function(string s) {
			this.function = s;
			return this;
		}

		public ButtonBuilder UrlAction(string s) {
			this.urlAction = s;
			return this;
		}

		public ButtonBuilder Icon(string s) {
			this.icon = s;
			return this;
		}

		public ButtonBuilder Submit(string s) {
			this.form = s;
			return this;
		}

		public ButtonBuilder Text(bool b) {
			this.text = b;
			return this;
		}

		public ButtonBuilder Type(ButtonType t) {
			this.type = t;
			return this;
		}

		#endregion
	}
}